package com.yidu.DailyFinalTreatment.entity;

public class NetWorth {
    /**
     * 净值统计
     * netWorthDate VARCHAR(20) PRIMARY KEY NOT NULL,	       	    -- 统计时间
     * 	projectName VARCHAR(20) ,   			 	    -- 项目名称
     * 	fundId VARCHAR(20) ,-- 外键              		    -- 基金编号
     * 	projectCode VARCHAR(20) ,                  		    -- 项目代码
     * 	shareNum INT ,                           		    -- 股数
     * 	stopPrice DOUBLE ,                       		    -- 行情
     * 	capital DOUBLE ,                         		    -- 成本
     * 	marketValue DOUBLE ,                     		    -- 市值
     * 	estimate DOUBLE ,                         		    -- 估值增值
     * 	projectId INT ,                                             -- 项目编号
     * 	projectFatherId INT                                         -- 父功能编号
     */
    private String netWorthDate;  //统计时间
    private String projectName; //项目名称
    private String fundId;  //基金编号
    private String projectCode; //项目代码
    private double shareNum;   //股数
    private double stopPrice;   //行情
    private double capital;     //成本
    private double marketValue;     //市值
    private double estimate;    //估值增值
    private int projectId;      //项目编号
    private int projectFatherId;    //父功能编号

    public NetWorth() {
    }


    public NetWorth(String netWorthDate, String projectName, String fundId, String projectCode, double shareNum, double stopPrice, double capital, double marketValue, double estimate, int projectId, int projectFatherId) {
        this.netWorthDate = netWorthDate;
        this.projectName = projectName;
        this.fundId = fundId;
        this.projectCode = projectCode;
        this.shareNum = shareNum;
        this.stopPrice = stopPrice;
        this.capital = capital;
        this.marketValue = marketValue;
        this.estimate = estimate;
        this.projectId = projectId;
        this.projectFatherId = projectFatherId;
    }

    public NetWorth(String netWorthDate, String projectName, String fundId, int projectId, int projectFatherId) {
        this.netWorthDate = netWorthDate;
        this.projectName = projectName;
        this.fundId = fundId;
        this.projectId = projectId;
        this.projectFatherId = projectFatherId;
    }

    public NetWorth(String netWorthDate, String projectName, String fundId, String projectCode, double capital, int projectId, int projectFatherId) {
        this.netWorthDate = netWorthDate;
        this.projectName = projectName;
        this.fundId = fundId;
        this.projectCode = projectCode;
        this.capital = capital;
        this.projectId = projectId;
        this.projectFatherId = projectFatherId;
    }

    public NetWorth(String netWorthDate, String projectName, String fundId, double capital, int projectId, int projectFatherId) {
        this.netWorthDate = netWorthDate;
        this.projectName = projectName;
        this.fundId = fundId;
        this.capital = capital;
        this.projectId = projectId;
        this.projectFatherId = projectFatherId;
    }

    public String getNetWorthDate() {
        return netWorthDate;
    }

    public void setNetWorthDate(String netWorthDate) {
        this.netWorthDate = netWorthDate;
    }

    public String getProjectCode() {
        return projectCode;
    }

    public void setProjectCode(String projectCode) {
        this.projectCode = projectCode;
    }

    public int getProjectId() {
        return projectId;
    }

    public void setProjectId(int projectId) {
        this.projectId = projectId;
    }

    public int getProjectFatherId() {
        return projectFatherId;
    }

    public void setProjectFatherId(int projectFatherId) {
        this.projectFatherId = projectFatherId;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getFundId() {
        return fundId;
    }

    public void setFundId(String fundId) {
        this.fundId = fundId;
    }

    public double getShareNum() {
        return shareNum;
    }

    public void setShareNum(double shareNum) {
        this.shareNum = shareNum;
    }

    public double getStopPrice() {
        return stopPrice;
    }

    public void setStopPrice(double stopPrice) {
        this.stopPrice = stopPrice;
    }

    public double getCapital() {
        return capital;
    }

    public void setCapital(double capital) {
        this.capital = capital;
    }

    public double getMarketValue() {
        return marketValue;
    }

    public void setMarketValue(double marketValue) {
        this.marketValue = marketValue;
    }

    public double getEstimate() {
        return estimate;
    }

    public void setEstimate(double estimate) {
        this.estimate = estimate;
    }

    @Override
    public String toString() {
        return "NetWorth{" +
                "projectName='" + projectName + '\'' +
                ", fundId='" + fundId + '\'' +
                ", projectId='" + projectId + '\'' +
                ", shareNum=" + shareNum +
                ", stopPrice=" + stopPrice +
                ", capital=" + capital +
                ", marketValue=" + marketValue +
                ", estimate=" + estimate +
                '}';
    }
}
